﻿#include "mainwindow.h"

#include <QApplication>
#include <QTimer>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    QTimer timer;
    timer.setInterval(50);
    QObject::connect(&timer, &QTimer::timeout, &w, &MainWindow::sendMsg);
    timer.start();
    return a.exec();
}
